package com.zjdiepu.www.model.third.dto;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.GroupSequence;
import javax.validation.constraints.Null;

import org.hibernate.validator.constraints.NotBlank;

import com.alibaba.fastjson.annotation.JSONField;
import com.zjdiepu.www.base.annotation.Add;
import com.zjdiepu.www.base.annotation.Update;
import com.zjdiepu.www.base.core.BaseModel;

/**
 * 车型<br/>
 * @author xiongxiaotun<br/>
 * @time 2017年03月23日 20时33分<br/>
 * @since 1.0<br/>
 */
@GroupSequence({Add.class, Update.class, JuheCar.class})
public class JuheCar extends BaseModel {
	
	private static final long serialVersionUID = 1L;
	/**
	 * 车系id
	 */
	@ApiModelProperty(name="seriesId",required=false,value="车辆系列id")
	@NotBlank(message="车系标识{message.null}", groups={Add.class, Update.class})
	private String seriesId;
	
	/**
	 * 发布年份
	 */
	@ApiModelProperty(name="fbPyear",required=false,value="报价年份")
//	@JSONField(name = "pyear")
	@NotBlank(message="发布年份{message.null}", groups={Add.class, Update.class})
	private String fbPyear;
	
	/**
	 * 车型id
	 */
	@ApiModelProperty(name="carId",required=false,value="车型id")
	@JSONField(name = "id")
	@Null(message="车型标识只能为空", groups={Add.class, Update.class})
	private String carId;
	
	/**
	 * 车型名称
	 */
	@ApiModelProperty(name="cxname",required=false,value="车型名称")
	@NotBlank(message="车型名称{message.null}", groups={Add.class, Update.class})
	private String cxname;
	
	/**
	 * 发布年份
	 */
	@ApiModelProperty(name="pyear",required=false,value="发布年份")
	@NotBlank(message="发布年份{message.null}", groups={Add.class, Update.class})
	private String pyear;
	
	/**
	 * 发布价格
	 */
	@ApiModelProperty(name="price",required=false,value="发布价格")
	@NotBlank(message="发布价格{message.null}", groups={Add.class, Update.class})
	private String price;
	
	public String getSeriesId(){
		return this.seriesId;
	}
	
	public void setSeriesId(String seriesId){
		this.seriesId = seriesId;
	}

	public String getFbPyear(){
		return this.fbPyear;
	}
	
	public void setFbPyear(String fbPyear){
		this.fbPyear = fbPyear;
	}

	public String getCarId(){
		return this.carId;
	}
	
	public void setCarId(String carId){
		this.carId = carId;
	}

	public String getCxname(){
		return this.cxname;
	}
	
	public void setCxname(String cxname){
		this.cxname = cxname;
	}

	public String getPyear(){
		return this.pyear;
	}
	
	public void setPyear(String pyear){
		this.pyear = pyear;
	}

	public String getPrice(){
		return this.price;
	}
	
	public void setPrice(String price){
		this.price = price;
	}


	@Override
	public String toString() {
		return super.toString() + "JuheCar [seriesId = " + seriesId + ", fbPyear = " + fbPyear + ", carId = " + carId + ", cxname = " + cxname + ", pyear = " + pyear + ", "
			+ "price = " + price + "]";
	}
    
}